package com.rental.model.form.house;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@Schema(description = "发布转租房屋表单")
public class SubletHouseAddForm {
    @Schema(description = "发布人id")
    private Long uid;

    @Schema( description = "经度")
    private BigDecimal longitude;

    @Schema( description = "纬度")
    private BigDecimal latitude;

    @Schema(description = "位置")
    private String location;

    @Schema( description = "房子照片")
    private String imagesUrl;

    @Schema( description = "房子视频")
    private String videoUrl;

    @Schema( description = "邻近车站")
    private String nearbyStation;

    @Schema( description = "房屋户型")
    private String structure;

    @Schema(description = "男性人数")
    private Integer male;

    @Schema(description = "女性人数")
    private Integer female;

    @Schema( description = "房屋情况与优点")
    private String introduce;

    @Schema( description = "租金")
    private BigDecimal rent;

    @Schema( description = "租期")
    private Integer tenancyTerm;

    @Schema( description = "押金方式")
    private String payType;

    @Schema( description = "租客的要求")
    private String renterRequire;

    @Schema( description = "房东情况")
    private String landlord;

    @Schema( description = "合约到期时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDate contractExpiration;

    @Schema( description = "可入住时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDate moveTime;

    @Schema( description = "联系微信")
    private String wechat;

    @Schema( description = "联系手机号")
    private String phone;

    @Schema(description = "方便看房时间")
    private String visitingTime;

    @Schema( description = "有效时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDate endTime;

    @Schema( description = "标题")
    private String title;
}
